package lottery;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class ClientVersion {
	
	private static boolean init = false;
	
	public static String VERSION = "version";
	public static String APP_NAME = "app";
	public static String SITE = "site";
	public static String EXT = "ext";
	

	
	public static String getProperty(String key)
    {
		Properties prop = null;
		InputStream in = ClientVersion.class.getResourceAsStream("/version.properties");
		try {
			prop = new Properties();
			prop.load(in);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
        return prop.getProperty(key);
    }
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		System.out.println(ClientVersion.getProperty(VERSION));
	}

}
